import { request } from './request'

export async function getTagsList(data: any) {
    return request({
        url: '/tags',
        params:data
    })
}

export async function addTags(data: any) {
    return request({
        url: '/tags',
        method: 'POST',
        data
    })
}

export async function delTags(data: any) {
    return request({
        url: `/tags/${data.id}`,
        method: 'DELETE',
    })
}

export async function editTags(data: any) {
    return request({
        url: `/tags/${data.id}`,
        method: 'PUT',
        data: data
    })
}

export async function updateStatus(data: any) {
    return request({
        url: `/statusTags/${data.id}`,
        method: 'PUT',
        data
    })
}